package com.renyi.timer;

import org.springframework.core.task.TaskExecutor;

import com.renyi.model.MybatisServiceDoctor;


 
public class TimerTask {
	
	private TaskExecutor taskExecutor;
	private MybatisServiceDoctor mybatisServiceDoctor;
	
	public TimerTask(TaskExecutor taskExecutor,MybatisServiceDoctor mybatisServiceDoctor){
		this.taskExecutor = taskExecutor;
		this.mybatisServiceDoctor = mybatisServiceDoctor;
		repairFormHandleThread();
	}
	
	/**
	 * */
	private void repairFormHandleThread()
	{
		taskExecutor.execute(new QuestionThread(taskExecutor,mybatisServiceDoctor));
	}
}
